#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20240629.sql ./mysql/db
cp ../sql/ry_config_20240902.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../beacon-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy beacon-gateway "
cp ../beacon-gateway/target/beacon-gateway.jar ./beacon/gateway/jar

echo "begin copy beacon-auth "
cp ../beacon-auth/target/beacon-auth.jar ./beacon/auth/jar

echo "begin copy beacon-visual "
cp ../beacon-visual/beacon-monitor/target/beacon-visual-monitor.jar  ./beacon/visual/monitor/jar

echo "begin copy beacon-modules-system "
cp ../beacon-modules/beacon-system/target/beacon-modules-system.jar ./beacon/modules/system/jar

echo "begin copy beacon-modules-file "
cp ../beacon-modules/beacon-file/target/beacon-modules-file.jar ./beacon/modules/file/jar

echo "begin copy beacon-modules-job "
cp ../beacon-modules/beacon-job/target/beacon-modules-job.jar ./beacon/modules/job/jar

echo "begin copy beacon-modules-gen "
cp ../beacon-modules/beacon-gen/target/beacon-modules-gen.jar ./beacon/modules/gen/jar

